# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-pylast
pkgver=5.0.0
pkgrel=0
pkgdesc="A Python interface to the last.fm API"
url="https://github.com/pylast/pylast"
arch="noarch !ppc64le !armhf" # py3-httpx
license="Apache-2.0"
replaces="py-pylast"
# Requires unpackaged flaky
options="!check"
depends="python3"
makedepends="py3-setuptools py3-setuptools_scm py3-httpx"
source="https://files.pythonhosted.org/packages/source/p/pylast/pylast-$pkgver.tar.gz"
builddir="$srcdir"/pylast-$pkgver

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}


sha512sums="
2515bb8108aac2bc2ffc04ed1f767c97794b30b4cf3e57779a537c01a89ecdfe6b4318689d2e8f4aea11ec29c0c8c343fe6e8a31b96660f4c86fb7429736b343  pylast-5.0.0.tar.gz
"
